package com.geek.factory.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author author
 * @since 2025-06-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("stock_check_detail")
@ApiModel(value="StockCheckDetail对象", description="")
public class StockCheckDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "detail_id", type = IdType.AUTO)
    private Integer detailId;

    @ApiModelProperty(value = "盘点单ID")
    private Integer checkId;

    @ApiModelProperty(value = "产品ID")
    private Integer productId;

    @ApiModelProperty(value = "原料ID")
    private Integer materialId;

    @ApiModelProperty(value = "物品类型")
    private String itemType;

    @ApiModelProperty(value = "系统库存数量")
    private BigDecimal systemQuantity;

    @ApiModelProperty(value = "实际盘点数量")
    private BigDecimal actualQuantity;

    @ApiModelProperty(value = "差异数量(实际-系统)")
    private BigDecimal difference;

    @ApiModelProperty(value = "仓库ID(关联warehouse表)")
    private Integer warehouseId;

    @ApiModelProperty(value = "计量单位")
    private String unit;

    @ApiModelProperty(value = "货柜ID")
    private Integer shelfId;

    @ApiModelProperty(value = "具体位置")
    private String location;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "盘点状态：pending=待盘点,checked=已盘点")
    private String checkStatus;

    @ApiModelProperty(value = "创建人")
    private String createdBy;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createdTime;

    @ApiModelProperty(value = "更新人")
    private String updatedBy;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updatedTime;




}
